-- GENERATED SPELL FOR [Wretched Lost One] --


function spell0_5979(pUnit, Event) --@Enfeeble,n/a--
pUnit:FullCastSpellOnTarget(11963,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5979', 2000, 1)
end

function spell1_5979(pUnit, Event) --@Immolate,n/a--
pUnit:FullCastSpellOnTarget(11962,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5979', 17000, 1)
end

function Sorts_5979(pUnit, Event)
local choix_sorts_5979 = math.random(0, 1)
if choix_sorts_5979 == 0 then
pUnit:RegisterEvent('spell0_5979', 1, 1)
end
if choix_sorts_5979 == 1 then
pUnit:RegisterEvent('spell1_5979', 1, 1)
end
end

function mob5979_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5979', math.random(1500, 3000), 1)
end

function mob5979_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5979_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5979_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5979, 1, 'mob5979_Action')
RegisterUnitEvent(5979, 2, 'mob5979_Leave')
RegisterUnitEvent(5979, 3, 'mob5979_Kill')
RegisterUnitEvent(5979, 4, 'mob5979_Die')
